
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, YHTabBarItemViewsStyle) {
    // 默认：上图下文
    YHTabBarItemViewsStyleDefault = 0,
    // 圆形背景文字样式
    YHTabBarItemViewsStyleCircleTitle,
};


@interface XMTabBarItemView : UIView

- (instancetype)initWithStyle:(YHTabBarItemViewsStyle)style;

/// 文字
@property (nonatomic, copy) NSString *title;
/// 文字
@property (nonatomic, strong) UIFont *titleFont;
/// 默认文字颜色
@property (nonatomic, strong) UIColor *titleColor;
/// 选中状态文字颜色
@property (nonatomic, strong) UIColor *titleSelectedColor;
/// 默认图片
@property (nonatomic, strong) UIImage *image;
@property (nonatomic, assign) CGSize imageSize;
/// 选中状态图片
@property (nonatomic, strong) UIImage *imageSelected;
/// 选中状态
@property (nonatomic, assign) BOOL selected;
/// 圆点
@property (nonatomic, assign) NSInteger badgeNum;

/// 点击事件
@property (nonatomic, copy) void (^clickBlock)(void);

@property (nonatomic, copy) NSString *clickLottieJson;

@end

NS_ASSUME_NONNULL_END
